﻿
//using System.Collections.Generic;
//using System.Net.Sockets;

//namespace DriveManage.TcpSocket.Server
//{
//    // 定义一个委托，用于处理客户端连接事件的回调
//    public delegate void ClientConnectedEventHandler(TcpClient client);
//    // 定义一个委托，用于处理客户端断开连接事件的回调
//    public delegate void ClientDisconnectedEventHandler(TcpClient client);
//    // 定义一个委托，用于处理接收到客户端消息事件的回调
//    public delegate void MessageReceivedEventHandler(TcpClient client, string Message);

//    public interface ISocketServerManager
//    {
//         void Start();

//         bool Stop();

//         bool HasConnectedClients();

//         void SendMessage(string Message);

//         void SendMessage(TcpClient Client, string Message);
//        List<string> ReceiveDataCache { get; }

//        event ClientConnectedEventHandler OnClientConnected;
//        event ClientDisconnectedEventHandler OnClientDisconnected;
//        event MessageReceivedEventHandler OnMessageReceived;
//    }
//}
